package aop01;

/**
 * Author:shixiaojun@itany.com
 * Date:2022/5/17 15:53
 * Version:1.0-SNAPSHOT
 * Description:
 */
public class SomeServiceProxy implements SomeService {

    private SomeService someService = new SomeServiceImpl();

    @Override
    public void doSome() {
        System.out.println("正在执行交叉业务逻辑");
        someService.doSome();
    }

    @Override
    public void doOther() {
        System.out.println("正在执行交叉业务逻辑");
        someService.doOther();
    }

    @Override
    public int add(int i, int j) {
        System.out.println("正在执行交叉业务逻辑");
        int num = someService.add(i,j);
        return num;
    }
}
